# Maintainer: Krystian Chachuła <krystian@krystianch.com>
pkgname=frescobaldi
pkgver=3.3.0
pkgrel=1
pkgdesc="LilyPond sheet music text editor"
url="https://www.frescobaldi.org/"
arch="noarch"
license="GPL-2.0-or-later"
depends="py3-qt5 py3-poppler-qt5 py3-qpageview py3-ly"
makedepends="py3-gpep517 py3-setuptools py3-wheel gettext"
subpackages="$pkgname-pyc $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/frescobaldi/frescobaldi/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests

build() {
	make -C i18n

	make -C linux

	gpep517 build-wheel \
		--wheel-dir dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/*.whl

	install -m 644 frescobaldi.1 \
		"$pkgdir"/usr/share/man/man1/frescobaldi.1
}

sha512sums="
0dc851cb2ab001f366d20d3c27159087a643cbb5661cc7388b9ec5209c03d4d47dc9114f378dab0562a1a4cb84c2a67eddd8b1981ceaa057e5ac79f8c277ad05  frescobaldi-3.3.0.tar.gz
"
